package com.dhl.fin.api.dao;

import com.dhl.fin.api.common.dto.QueryDto;
import com.dhl.fin.api.domain.BusinessRecord;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;

public interface BusinessRecordDao {
    int deleteByPrimaryKey(BusinessRecord record);

    int insert(BusinessRecord record);

    int insertSelective(BusinessRecord record);

    List<BusinessRecord> selectPageQuery(QueryDto queryDto);

    List<BusinessRecord> selectSelective(QueryDto queryDto);

    int selectCount(QueryDto queryDto);

    BusinessRecord selectOne(QueryDto queryDto);

    BusinessRecord selectByPrimaryKey(Map data);

    int updateByPrimaryKeySelective(@Param("domain")BusinessRecord record, @Param("query")QueryDto queryDto);

    int updateByPrimaryKey(BusinessRecord record);
}